-- GENERATED SPELL FOR [Lost Spirit] --


function spell0_18460(pUnit, Event) --@Cry of the Dead,Self--
pUnit:FullCastSpellOnTarget(32938,pUnit)
pUnit:RegisterEvent('Sorts_18460', 7000, 1)
end

function Sorts_18460(pUnit, Event)
local choix_sorts_18460 = math.random(0, 0)
if choix_sorts_18460 == 0 then
pUnit:RegisterEvent('spell0_18460', 1, 1)
end
end

function mob18460_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18460', math.random(1500, 3000), 1)
end

function mob18460_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18460_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18460_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18460, 1, 'mob18460_Action')
RegisterUnitEvent(18460, 2, 'mob18460_Leave')
RegisterUnitEvent(18460, 3, 'mob18460_Kill')
RegisterUnitEvent(18460, 4, 'mob18460_Die')
